<template>
  <div class="err-message" v-if="errShow">
    <span class="iconfont icon-error"></span>
    <p class="error-text">网络走丢了</p>
  </div>
</template>

<script>
export default {
  name: 'ErrorMessage',
  props: {
    errShow: {
      type: Boolean,
      default() {
        return false;
      },
    },
  },
};
</script>

<style lang="scss" scoped>
.err-message {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 3rem;
  .iconfont {
    color: #aaa;
    font-size: 0.5rem;
  }
  .error-text {
    color: #aaa;
    font-size: 0.16rem;
    margin-top: 0.05rem;
  }
}
</style>
